<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>航班信息</title>
    <link rel="stylesheet" href="../../../css/iconfont/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="../../../css/aui.css" />
    <link rel="stylesheet" href="../../../css/index/train/train_message.css"/>
    <link rel="stylesheet" href="../../../css/index/aircraft/plane_info.css">

</head>
<body style="cursor: pointer">
<!--头部start-->
<header class="aui-bar aui-bar-nav" style="background: #3CB0D6;" id='header'>
    <a class="aui-pull-left aui-btn" onclick="closeWin()">
        <span class="aui-iconfont aui-icon-left"></span>
    </a>
    <div class="aui-title" style="text-align:center;">
      <span class="startCity">太原</span>
      <span class="arrows"><i class="iconfont icon-qucheng" style="font-size:1rem;"></i></span>
      <span class="endCity">北京</span>
    </div>
    <a class="aui-pull-right aui-btn aui-btn-outlined" style="border: 0;" onclick="getHome()">
        <span class="aui-iconfont aui-icon-home"></span>
    </a>
</header>
</body>
<script src="../../../script/aui/api.js" ></script>
<script src="../../../script/aui/aui-dialog.js" ></script>
<script src="../../../script/aui/aui-toast.js" ></script>
<script src="../../../script/extend/jquery-3.3.1.min.js"></script>
<script src="../../../script/extend/doT.min.js"></script>
<script type="text/javascript" src="../../../script/common.js"></script>
<script>
apiready = function(){
api.parseTapmode();
  //设置高度
  var header = $api.byId('header');
  $api.fixStatusBar(header);
  planeInfo = api.pageParam.plane;//接收参数
  selected_staff = api.pageParam.selected_staff;
  $('.startCity').text($api.getStorage('aircraf_start_site'));
  $('.endCity').text($api.getStorage('aircraf_end_site'));
  var contentHead = api.winHeight - $api.byId('header').offsetHeight;
  api.openFrame({
      name: 'plane_info_frm',
      url: './plane_info_frm.html',
      rect: {
          x: 0,
          y: $api.byId('header').offsetHeight,
          w: 'auto',
          h: contentHead
      },
      pageParam: {
          planeInfo     : planeInfo,
          selected_staff: selected_staff
      },
      bounces: false,
      bgColor: 'rgba(0,0,0,0)',
      vScrollBarEnabled: true,
      hScrollBarEnabled: true
  });


  var flight_number   = planeInfo.flight_number;//航班号
  var date            = planeInfo.date;//起飞日期
  $('.flight_number').text(planeInfo.information_to);//东航MU5294
  var date1 = date.split('/');
  $('.start_date').text(date1[1]+'月'+date1[2]+'日');
}

function getHome() {
    backHome();
}
</script>
</html>
